package com.songcha.module_main.ui.adapter

import android.os.Bundle
import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentManager
import androidx.fragment.app.FragmentStatePagerAdapter
import com.songcha.module_main.ui.fragment.achievement.AchievementFragment
import com.songcha.module_main.ui.fragment.gongde_rank.GongDeRankFragment

class RankTabAdapter(fm: FragmentManager): FragmentStatePagerAdapter(fm){
    override fun getCount(): Int {
        return 2
    }

    override fun getItem(position: Int): Fragment {
       if(position == 0){
           return GongDeRankFragment()
       }else{
           return AchievementFragment()
       }
    }

    override fun getPageTitle(position: Int): CharSequence? {
        return ""
    }

}